﻿<%@ Page Language="c#" CodeBehind="RelativesAbroad.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.Member.RelativesAbroad" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register src="~/gSDMSModule/UpdateData/TopSearchItem.ascx" tagname="TopSearchItem" tagprefix="uc2" %>
<%@ Register TagPrefix="uc1" TagName="PostList" Src="~/gSDMSModule/UpdateData/LeftMenuItem.ascx" %>
<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" >
</asp:Content>
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">


<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class=""><uc2:TopSearchItem ID="TopSearchItem1" runat="server" /></div>
        <div class="leftmenucontent">
            <uc1:PostList ID="leftMenuItem" runat="server" />
        </div>
        <div class="modulecontent">
            <div class="field">
<%--            <asp:UpdatePanel ID='updatePanel' runat="server" >
                <ContentTemplate>--%>
                    
                
                 <%--<mp:SiteLabel ID="lblInfo" CssClass="title info" runat="server" ResourceFile="gSDMSResource" ConfigKey="gSDMSHostingPackage" />--%>
                <div class="div_title">
                    <a href="/gsdmsmodule/UpdateData/UpdateMember_Full.aspx?pageid=16">Thành viên</a>
                    &nbsp;>&nbsp;
                    <a href="">Người thân ở nước ngoài</a>
                </div>
                

                <br /><br />
                <script type="text/javascript">
                    function keypress(e) {
                      
                        var keypressed = null;

                        if (window.event) {
                            keypressed = window.event.keyCode; //IE
                        }
                        else {
                            keypressed = e.which; //NON-IE, Standard
                        }

                        if (keypressed < 48 || keypressed > 57) { //CharCode của 0 là 48 (Theo bảng mã ASCII)
                            //CharCode của 9 là 57 (Theo bảng mã ASCII)

                            if (keypressed == 8 || keypressed == 127) {//Phím Delete và Phím Back
                                return;
                            }

                            return false;
                        }

                    }
                    function nonpress(e) {
                        return false;
                    }

                </script>
                <div class="div_Edit">
                <div class="scroll">
                    <table cellpadding='5' cellspacing='0' border='0' width='auto' class="tb_edit">
                         <tr >
                            <td colspan="4">
                                <table>
                                    <tr class="div_title_parent">
                                        <td class="div_title div_title_group">THÂN NHÂN Ở NƯỚC NGOÀI:</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="title">
                                <asp:GridView runat="server" ID="gvChildInfo" AutoGenerateColumns="False" CssClass="gvData"
                                RowStyle-CssClass="rowstyle" 
                                    AlternatingRowStyle-CssClass="AlternatingRowStyle" 
                                    onrowcancelingedit="gvChildInfo_RowCancelingEdit" 
                                    onrowediting="gvChildInfo_RowEditing" 
                                    onrowupdating="gvChildInfo_RowUpdating" EnableModelValidation="True" 
                                    onrowdeleting="gvChildInfo_RowDeleting" EmptyDataText="Khong co du lieu">

                                    <AlternatingRowStyle CssClass="AlternatingRowStyle" />

                                    <Columns>
                                     <asp:TemplateField HeaderText="Họ và tên" ItemStyle-CssClass="gvItem ta_cen" HeaderStyle-CssClass="gvHeader">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txt1" runat="server" Text='<%# Eval("Ten")  %>' 
                                                    Visible="True"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrTen" runat="server" Text='<%# Eval("Ten") %>'/>
                                            </ItemTemplate>
                                     </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Quan hệ" ItemStyle-CssClass="gvItem ta_cen" HeaderStyle-CssClass="gvHeader">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txt2" runat="server" Text='<%# Eval("QuanHe") %>' 
                                                    Visible="True"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrQuanHe" runat="server" Text='<%# Eval("QuanHe") %>' />
                                            </ItemTemplate>
                                     </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Ngày sinh" ItemStyle-CssClass="" HeaderStyle-CssClass="gvHeader">
                                            <EditItemTemplate>
                                            <div class="input">
                                           
                                                           <telerik:RadDatePicker ID="dat_NgaySinh" runat="server" 
                                                    DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10"
                                                    DatePopupButton-Width="20px" DatePopupButton-Height="23px" DateInput-ReadOnly="True" SelectedDate= '<%# DateTime.Now %>'>
                                                 <Calendar ID="Calendar1" runat="server">
                                                    <SpecialDays>
                                                        <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                                    </SpecialDays>
                                                </Calendar>
                                            </telerik:RadDatePicker>
                                            </div>

                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrNgaySinh" runat="server" Text='<%# Eval("NgaySinh") %>' />
                                            </ItemTemplate>
                                     </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Nghề nghiệp" ItemStyle-CssClass="gvItem ta_cen" HeaderStyle-CssClass="gvHeader">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txt4" runat="server" Text='<%# Eval("NgheNghiep") %>' 
                                                    Visible="True"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrNgheNghiep" runat="server" Text='<%# Eval("NgheNghiep") %>' />
                                            </ItemTemplate>
                                     </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Nước định cư" ItemStyle-CssClass="gvItem ta_cen" HeaderStyle-CssClass="gvHeader">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txt5" runat="server" Text='<%# Eval("NuocDinhCu") %>' 
                                                    Visible="True"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrNuocDinhCu" runat="server" Text='<%# Eval("NuocDinhCu") %>' />
                                            </ItemTemplate>
                                     </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Quốc tịch" ItemStyle-CssClass="gvItem ta_cen" HeaderStyle-CssClass="gvHeader">
                                            <EditItemTemplate>
                                                    <asp:DropDownList runat="server" ID="drdl_quoctich" OnLoad="quoctich_Load" OnSelectedIndexChanged="quoctich_Change" />
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrQuocTich" runat="server" Text='<%# Eval("QuocTich") %>' />
                                            </ItemTemplate>
                                     </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Năm định cư" ItemStyle-CssClass="gvItem ta_cen" HeaderStyle-CssClass="gvHeader">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txt7" runat="server" Text='<%# Eval("NamDinhCu") %>' 
                                                    Visible="True"  onKeyPress=" return keypress(event);"></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrNamDinhCu" runat="server" Text='<%# Eval("NamDinhCu") %>' />
                                            </ItemTemplate>
                                     </asp:TemplateField>
                                     <asp:CommandField  HeaderStyle-CssClass="gvHeader" HeaderText="Chức năng" 
                                            ItemStyle-CssClass="gvItem ta_left" ShowEditButton="True" ShowDeleteButton="True">
                                                
                                            <HeaderStyle CssClass="gvHeader" />
                                            <ItemStyle CssClass="gvItem ta_cen div_chucnang"/>
                                        </asp:CommandField>
                                     </Columns>
                                    <RowStyle CssClass="rowstyle" />
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr><td></td></tr>
                        <tr>
                            <td> <asp:Button  CssClass="btn btn_insert" ID="BtnInsert" Text="Thêm" 
                                    CommandName="Btn_Insert" runat="server" CommandArgument='<%# Eval("Ten") %>' 
                                    onclick="BtnInsert_Click" /></td>
                        </tr>
                    </table>
                    </div>
                </div>

<%--                </ContentTemplate>
            </asp:UpdatePanel>--%>
                
            </div>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" 
    runat="server" >
</asp:Content>
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
